<%-- 
    Document   : index.jsp
    Created on : 20 nov. 2013, 15:56:16
    Author     : smng2095
--%>

<%@page import="java.util.logging.Logger"%>
<%@page import="java.util.logging.Level"%>
<%@page import="java.util.concurrent.ExecutionException"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <%  try{
            if(request.getSession()!=null)
                   if(((String)request.getSession().getAttribute("authentified")).equalsIgnoreCase("yes")){
                        RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/dispatcheur");
                        dispatcher.forward(request, response); }
        }catch  (Exception ex){
            
        }   
    
    %>
    <body>
        <%  try{
            if(request.getAttribute("error")!=null)
                   out.print(((String)request.getAttribute("error")));
                   request.removeAttribute("error");
             if(request.getAttribute("info")!=null)
                   out.print(((String)request.getAttribute("info")));
                   request.removeAttribute("info");
            }catch  (Exception ex){
            
            }   
    
    %>
        
        
               <form action="/Phase4-IHM/dispatcheur" method="POST">
Login :           <INPUT type=text size=20 name=login><BR>
Password : 	<INPUT type=password size=20 name=password><BR>
            <button type="submit">Log In !</button>
            
        </form>
        <a href="/Phase4-IHM/admin.jsp">Acces Administrateur</a>
    </body>
</html>
